home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / patches / ip20t21a.lha / IFX20to21a_Patch / Patches2.lha / Rexx / AutoFX / EOT_Punch.ifx < prev    next >
Text File  |  1995-04-17  |  711b  |  34 lines

  1. /*
  2.  * EOT_Punch.ifx
  3.  * Written by Thomas Krehbiel
  4.  *
  5.  * Animated Punch (Warp) Effect.
  6.  *
  7.  * Inputs:
  8.  *    Word(Arg(1),1) = Frame number (1 - N)
  9.  *    Word(Arg(1),2) = Main filename ("-" if not specified)
  10.  *    Word(Arg(1),3) = Swap filename ("-" if not specified)
  11.  *    Word(Arg(1),4) = Sequence number (?)
  12.  *    Word(Arg(1),5) = Total number of frames (N)
  13.  *
  14.  * Returns:
  15.  *    0 if successful, non-zero on failure
  16.  *
  17.  */
  18.  
  19. OPTIONS RESULTS
  20.  
  21. framenum = Word(Arg(1),1)
  22. framemax = Word(Arg(1),5)
  23.  
  24. base  = 'Autofx_Punch_'
  25.  
  26. start = GETCLIP(base||'Start')
  27. end   = GETCLIP(base||'End')
  28.  
  29. /* linear interpolation */
  30. amt   = start + ((end - start + 1) * (framenum-1) % (framemax-1))
  31.  
  32. Hook Warp Punch amt AntiAlias
  33. EXIT rc
  34.